﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Cole.GUI
{
    public partial class frmPrincipal : Form
    {
        public frmPrincipal()
        {
            InitializeComponent();
        }

        private void buscarDocenteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmDocente = new frmListDocentes();
            frmDocente.MdiParent = this;
            frmDocente.Show();
        }

        private void nuevoDocenteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmDocente = new frmDocentes();
            frmDocente.NuevoDocente();
            frmDocente.MdiParent = this;
            frmDocente.Show();
        }

        private void buscarMatriculaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmMatricula = new frmListDocentes();
            frmMatricula.MdiParent = this;
            frmMatricula.Show();
        }

        private void nuevaMatriculaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmMatricula = new frmMatricula();

            frmMatricula.NuevaMatricula();
            frmMatricula.MdiParent = this;
            frmMatricula.Show();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {

        }

        private void buscarAlumnoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmAlumno = new BuscarAlumno();
            frmAlumno.MdiParent = this;
            frmAlumno.Show();
        }

        private void nuevoAlumnoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmNAlumno = new RegistrarAlumno();
            //frmMatricula.NuevaMatricula();
            frmNAlumno.nuevo();
            frmNAlumno.MdiParent = this;
            frmNAlumno.Show();
        }

        private void buscarCursoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmCurso = new CursosFrm.CursosPrin();
            frmCurso.MdiParent = this;
            frmCurso.Show();
        }

        private void nuevoCursoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmNCurso = new CursosFrm.NuevoCur();
            //frmMatricula.NuevaMatricula();
            frmNCurso.MdiParent = this;
            frmNCurso.Show();
        }

        private void nuevoGradoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
            var frmNuevoGrado = new Grado_Seccion.FrmNuevoGrado();
            frmNuevoGrado.nuevo();
            frmNuevoGrado.MdiParent = this;
            frmNuevoGrado.Show();
        }

        private void nuevaSeccionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmNuevaSeccion= new Grado_Seccion.FrmNuevaSeccion();
            frmNuevaSeccion.nuevo();
            frmNuevaSeccion.MdiParent = this;
            frmNuevaSeccion.Show();
        }

        private void buscarSeccionPorGradoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frmNuevaSeccion = new Grado_Seccion.FrmGrado();
            frmNuevaSeccion.MdiParent = this;
            frmNuevaSeccion.Show();
        }
    }
}
